package me.winds.infrared.module.basic;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseViewHolder;

import me.winds.widget.autolayout.utils.AutoUtils;


/**
 * Auther:  winds
 * Data:    2017/5/9
 * Desc:
 */

public class BaseRecyclerHolder extends BaseViewHolder {
    public BaseRecyclerHolder(View view) {
        super(view);
        AutoUtils.auto(view);
    }


    public BaseRecyclerHolder setVisibleText(int viewId, CharSequence msg) {
        TextView view = getView(viewId);
        view.setVisibility(View.VISIBLE);
        view.setText(msg);
        return this;
    }
}
